﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Export.Ui.Pages.Order
{
    using Export.Ui.ViewModel;
    using FirstFloor.ModernUI.Windows;

    /// <summary>
    /// Interaction logic for OrderAll.xaml
    /// </summary>
    public partial class OrderAll : UserControl,IContent
    {
        public OrderAll()
        {
            InitializeComponent();
            
        }

        public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
        {
            int status = 0;

            if (e.Fragment != null && int.TryParse(e.Fragment, out status))
            {
                DataContext = new OrderAllViewModel(status);
            }
            else{
                DataContext = new OrderAllViewModel(status);
            }
        }

        public void OnNavigatedFrom(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            
        }

        public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            
        }

        public void OnNavigatingFrom(FirstFloor.ModernUI.Windows.Navigation.NavigatingCancelEventArgs e)
        {
            
        }
    }
}
